package account

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/account/v1"
)

func (c *ControllerV1) AccountOpLogs(ctx context.Context, req *v1.AccountOpLogsReq) (res *v1.AccountOpLogsRes, err error) {
	res = &v1.AccountOpLogsRes{}
	res.Rows, res.Total, err = service.Account().OptionLogs(ctx, &req.AccountOpLogsInput)
	return
}
